package com.school.domain;


import java.io.Serializable;

public class Teacher implements Serializable {

  private static final long serialVersionUID = 5706691652540260662L;
  private long tid;
  private String name;
  private String pwd;
  private long age;
  private String sex;

  public Teacher() {
  }

  public Teacher(String name, String pwd, long age, String sex) {
    this.name = name;
    this.pwd = pwd;
    this.age = age;
    this.sex = sex;
  }

  @Override
  public String toString() {
    return "Teacher{" +
            "tid=" + tid +
            ", name='" + name + '\'' +
            ", pwd='" + pwd + '\'' +
            ", age=" + age +
            ", sex='" + sex + '\'' +
            '}';
  }

  public String getPwd() {
    return pwd;
  }

  public void setPwd(String pwd) {
    this.pwd = pwd;
  }

  public long getTid() {
    return tid;
  }

  public void setTid(long tid) {
    this.tid = tid;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }
}
